-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set keyboard shortcuts for adding a cell below or above selected cell #2287
Conversation
Try this Pull Request!Open Julia and type: julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/damiansobecki/Pluto.jl", rev="main")
julia> using Pluto |
What are the keyboard shortcuts for VS Code? We try to match the VS Code shortcuts, not necessarily Jupyter. |
I know but adding cells seems to be notebook specific action, I'm not aware of any VS Code notebooks. |
Exactly! VS Code has a notebook UI, the shortcuts are different. |
OK, nice. I meant this two specific shortcuts: "When a code cell is in command mode, the A key can be used to add a cell above and the B can be used to add a cell below the selected cell." That's from their doc I linked. |
From a previous jupyterlab user this is the first thing you would notice when switching to Pluto. Is there anything blocking this? |
VSCode uses ctrl+; A and ctrl+; B. |
Right, and we don't want to have a "command mode" or "cell mode" for Pluto shortcuts. @dralletje is working on a way to create new cells with keyboard interactions only, by treating 3 newlines as a cell break. I think we should go with that instead! |
The default keys for this in Jupyter's command mode are "A" and "B" for cells above and below. Here I set it to be Alt+A and Alt+B (as in #65 the shortcut is not specified).
btw before/after - above/below is a little unfortunate